import http from '@/utils/http';

export function getList(page,pageSize,name,status,username) {
  return http.get('/admin/user/userList',{
    params:{
        page,
        pageSize,
        name,
        status,
        username,
    }
  })
}
export function addUser(data) {
  return http.post('/admin/user/addUser',data)
}
export function deleteUser(id) {
  return http.delete(`/admin/user/deleteUser/${id}`)
}
export function editStatus(id,status) {
  return http.put(`/admin/user/editStatus/${id}/${status}`) 
}
export function resetPwd(id) {
  return http.put(`/admin/user/resetPwd/${id}`)
}
export function  updatePassword(data) {
  return http.post('/admin/user/updatePwd',data)
}